<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
  <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Request-Interception &mdash; Selenium-Driverless 1.9.3.1 documentation</title>
      <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
      <link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />

  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
        <script src="../../_static/jquery.js?v=5d32c60e"></script>
        <script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
        <script src="../../_static/documentation_options.js?v=58554080"></script>
        <script src="../../_static/doctools.js?v=888ff710"></script>
        <script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
    <script src="../../_static/js/theme.js"></script>
    <link rel="index" title="Index" href="../../genindex/" />
    <link rel="search" title="Search" href="../../search/" />
    <link rel="next" title="Target" href="../Target/" />
    <link rel="prev" title="Input" href="../Input/" /> 
</head>

<body class="wy-body-for-nav"> 
  <div class="wy-grid-for-nav">
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >

          
          
          <a href="../../" class="icon icon-home">
            Selenium-Driverless
          </a>
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>
        </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../By/">By Element Locator</a></li>
<li class="toctree-l1"><a class="reference internal" href="../Chrome/">webdriver.Chrome</a></li>
<li class="toctree-l1"><a class="reference internal" href="../ChromeOptions/">ChromeOptions</a></li>
<li class="toctree-l1"><a class="reference internal" href="../Context/">Context</a></li>
<li class="toctree-l1"><a class="reference internal" href="../Input/">Input</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Request-Interception</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#example-script">Example Script</a></li>
<li class="toctree-l2"><a class="reference internal" href="#api">API</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor"><code class="docutils literal notranslate"><span class="pre">NetworkInterceptor</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor.__init__"><code class="docutils literal notranslate"><span class="pre">NetworkInterceptor.__init__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor.__aiter__"><code class="docutils literal notranslate"><span class="pre">NetworkInterceptor.__aiter__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor.patterns"><code class="docutils literal notranslate"><span class="pre">NetworkInterceptor.patterns</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor.target"><code class="docutils literal notranslate"><span class="pre">NetworkInterceptor.target</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.target"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.target</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.stage"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.stage</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.is_redirect"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.is_redirect</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.params"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.params</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.frame_id"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.frame_id</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.request"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.request</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.id"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.id</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.resource_type"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.resource_type</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.network_id"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.network_id</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_error_reason"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.response_error_reason</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_headers"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.response_headers</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_status_code"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.response_status_code</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_status_text"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.response_status_text</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.redirected_id"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.redirected_id</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.body"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.body</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.bypass_browser"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.bypass_browser()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.continue_request"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.continue_request()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.continue_response"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.continue_response()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.resume"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.resume()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.fail_request"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.fail_request()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.fulfill"><code class="docutils literal notranslate"><span class="pre">InterceptedRequest.fulfill()</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.request"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.request</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.id"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.id</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.frame_id"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.frame_id</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.params"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.params</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.target"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.target</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.resource_type"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.resource_type</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.auth_challenge"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.auth_challenge</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.continue_auth"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.continue_auth()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.resume"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.resume()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.cancel"><code class="docutils literal notranslate"><span class="pre">InterceptedAuth.cancel()</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge"><code class="docutils literal notranslate"><span class="pre">AuthChallenge</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.target"><code class="docutils literal notranslate"><span class="pre">AuthChallenge.target</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.params"><code class="docutils literal notranslate"><span class="pre">AuthChallenge.params</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.source"><code class="docutils literal notranslate"><span class="pre">AuthChallenge.source</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.origin"><code class="docutils literal notranslate"><span class="pre">AuthChallenge.origin</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.scheme"><code class="docutils literal notranslate"><span class="pre">AuthChallenge.scheme</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.realm"><code class="docutils literal notranslate"><span class="pre">AuthChallenge.realm</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request"><code class="docutils literal notranslate"><span class="pre">Request</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.target"><code class="docutils literal notranslate"><span class="pre">Request.target</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.params"><code class="docutils literal notranslate"><span class="pre">Request.params</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.url"><code class="docutils literal notranslate"><span class="pre">Request.url</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.url_fragment"><code class="docutils literal notranslate"><span class="pre">Request.url_fragment</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.method"><code class="docutils literal notranslate"><span class="pre">Request.method</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.headers"><code class="docutils literal notranslate"><span class="pre">Request.headers</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.post_data"><code class="docutils literal notranslate"><span class="pre">Request.post_data</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.has_post_data"><code class="docutils literal notranslate"><span class="pre">Request.has_post_data</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.post_data_entries"><code class="docutils literal notranslate"><span class="pre">Request.post_data_entries</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.mixed_content_type"><code class="docutils literal notranslate"><span class="pre">Request.mixed_content_type</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.initial_priority"><code class="docutils literal notranslate"><span class="pre">Request.initial_priority</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.referrer_policy"><code class="docutils literal notranslate"><span class="pre">Request.referrer_policy</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.is_link_preload"><code class="docutils literal notranslate"><span class="pre">Request.is_link_preload</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.trust_token_params"><code class="docutils literal notranslate"><span class="pre">Request.trust_token_params</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request.is_same_site"><code class="docutils literal notranslate"><span class="pre">Request.is_same_site</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestStages"><code class="docutils literal notranslate"><span class="pre">RequestStages</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestStages.Request"><code class="docutils literal notranslate"><span class="pre">RequestStages.Request</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestStages.Response"><code class="docutils literal notranslate"><span class="pre">RequestStages.Response</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestPattern"><code class="docutils literal notranslate"><span class="pre">RequestPattern</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestPattern.AnyRequest"><code class="docutils literal notranslate"><span class="pre">RequestPattern.AnyRequest</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestPattern.AnyResponse"><code class="docutils literal notranslate"><span class="pre">RequestPattern.AnyResponse</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestPattern.new"><code class="docutils literal notranslate"><span class="pre">RequestPattern.new()</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthAlreadyHandledException"><code class="docutils literal notranslate"><span class="pre">AuthAlreadyHandledException</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthAlreadyHandledException.request"><code class="docutils literal notranslate"><span class="pre">AuthAlreadyHandledException.request</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestDoneException"><code class="docutils literal notranslate"><span class="pre">RequestDoneException</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestDoneException.request"><code class="docutils literal notranslate"><span class="pre">RequestDoneException.request</span></code></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Target/">Target</a></li>
<li class="toctree-l1"><a class="reference internal" href="../WebELement/">WebElement</a></li>
</ul>

        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../">Selenium-Driverless</a>
      </nav>

      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="../../" class="icon icon-home" aria-label="Home"></a></li>
      <li class="breadcrumb-item active">Request-Interception</li>
      <li class="wy-breadcrumbs-aside">
            <a href="../../_sources/api/RequestInterception.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
             
  <section id="request-interception">
<h1>Request-Interception<a class="headerlink" href="#request-interception" title="Link to this heading"></a></h1>
<section id="example-script">
<h2>Example Script<a class="headerlink" href="#example-script" title="Link to this heading"></a></h2>
<div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">asyncio</span>
<span class="kn">import</span> <span class="nn">json</span>
<span class="kn">from</span> <span class="nn">selenium_driverless</span> <span class="kn">import</span> <span class="n">webdriver</span>
<span class="kn">from</span> <span class="nn">selenium_driverless.scripts.network_interceptor</span> <span class="kn">import</span> <span class="n">NetworkInterceptor</span><span class="p">,</span> <span class="n">InterceptedRequest</span><span class="p">,</span> <span class="n">InterceptedAuth</span><span class="p">,</span> \
    <span class="n">RequestPattern</span><span class="p">,</span> <span class="n">RequestStages</span>


<span class="k">async</span> <span class="k">def</span> <span class="nf">on_request</span><span class="p">(</span><span class="n">data</span><span class="p">:</span> <span class="n">InterceptedRequest</span><span class="p">):</span>
    <span class="k">if</span> <span class="n">data</span><span class="o">.</span><span class="n">request</span><span class="o">.</span><span class="n">url</span> <span class="o">==</span> <span class="s2">&quot;https://httpbin.org/post&quot;</span><span class="p">:</span>
        <span class="k">await</span> <span class="n">data</span><span class="o">.</span><span class="n">continue_request</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="s2">&quot;https://httpbin.org/basic-auth/user/pass&quot;</span><span class="p">,</span> <span class="n">intercept_response</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>


<span class="k">async</span> <span class="k">def</span> <span class="nf">main</span><span class="p">():</span>
    <span class="k">async</span> <span class="k">with</span> <span class="n">webdriver</span><span class="o">.</span><span class="n">Chrome</span><span class="p">(</span><span class="n">max_ws_size</span><span class="o">=</span><span class="mi">2</span> <span class="o">**</span> <span class="mi">30</span><span class="p">)</span> <span class="k">as</span> <span class="n">driver</span><span class="p">:</span>

        <span class="k">async</span> <span class="k">with</span> <span class="n">NetworkInterceptor</span><span class="p">(</span><span class="n">driver</span><span class="p">,</span> <span class="n">on_request</span><span class="o">=</span><span class="n">on_request</span><span class="p">,</span> <span class="n">patterns</span><span class="o">=</span><span class="p">[</span><span class="n">RequestPattern</span><span class="o">.</span><span class="n">AnyRequest</span><span class="p">],</span>
                                      <span class="n">intercept_auth</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">as</span> <span class="n">interceptor</span><span class="p">:</span>

            <span class="n">asyncio</span><span class="o">.</span><span class="n">ensure_future</span><span class="p">(</span><span class="n">driver</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;https://httpbin.org/post&quot;</span><span class="p">,</span> <span class="n">wait_load</span><span class="o">=</span><span class="kc">False</span><span class="p">))</span>
            <span class="k">async</span> <span class="k">for</span> <span class="n">data</span> <span class="ow">in</span> <span class="n">interceptor</span><span class="p">:</span>
                <span class="k">if</span> <span class="n">data</span><span class="o">.</span><span class="n">request</span><span class="o">.</span><span class="n">url</span> <span class="o">==</span> <span class="s2">&quot;https://httpbin.org/basic-auth/user/pass&quot;</span><span class="p">:</span>
                    <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">InterceptedAuth</span><span class="p">):</span>
                        <span class="c1"># iteration should take virtually zero time, as that would block other requests</span>
                        <span class="n">asyncio</span><span class="o">.</span><span class="n">ensure_future</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">continue_auth</span><span class="p">(</span><span class="n">username</span><span class="o">=</span><span class="s2">&quot;user&quot;</span><span class="p">,</span> <span class="n">password</span><span class="o">=</span><span class="s2">&quot;pass&quot;</span><span class="p">))</span>
                    <span class="k">elif</span> <span class="n">data</span><span class="o">.</span><span class="n">stage</span> <span class="o">==</span> <span class="n">RequestStages</span><span class="o">.</span><span class="n">Response</span><span class="p">:</span>
                        <span class="nb">print</span><span class="p">(</span><span class="n">json</span><span class="o">.</span><span class="n">loads</span><span class="p">(</span><span class="k">await</span> <span class="n">data</span><span class="o">.</span><span class="n">body</span><span class="p">))</span>
                        <span class="k">break</span>


<span class="n">asyncio</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">main</span><span class="p">())</span>
</pre></div>
</div>
</section>
<section id="api">
<h2>API<a class="headerlink" href="#api" title="Link to this heading"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.NetworkInterceptor">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">NetworkInterceptor</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">target</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">on_request</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">on_response</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">on_auth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">patterns</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">intercept_auth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">bypass_service_workers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#NetworkInterceptor"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor" title="Link to this definition"></a></dt>
<dd><dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.NetworkInterceptor.__init__">
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">target</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">on_request</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">on_response</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">on_auth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">patterns</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">intercept_auth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">bypass_service_workers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#NetworkInterceptor.__init__"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor.__init__" title="Link to this definition"></a></dt>
<dd><dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>target</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Union</span></code>[<a class="reference internal" href="../Chrome/#selenium_driverless.webdriver.Chrome" title="selenium_driverless.webdriver.Chrome"><code class="xref py py-class docutils literal notranslate"><span class="pre">Chrome</span></code></a>, <a class="reference internal" href="../Target/#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a>]</span>) – the Target or Driver, on which requests get intercepted</p></li>
<li><p><strong>on_request</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-data docutils literal notranslate"><span class="pre">Callable</span></code>[[<a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest" title="selenium_driverless.scripts.network_interceptor.InterceptedRequest"><code class="xref py py-class docutils literal notranslate"><span class="pre">InterceptedRequest</span></code></a>], <code class="xref py py-class docutils literal notranslate"><span class="pre">Awaitable</span></code>[<code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code>]]]</span>) – onRequest callback</p></li>
<li><p><strong>on_response</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-data docutils literal notranslate"><span class="pre">Callable</span></code>[[<a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest" title="selenium_driverless.scripts.network_interceptor.InterceptedRequest"><code class="xref py py-class docutils literal notranslate"><span class="pre">InterceptedRequest</span></code></a>], <code class="xref py py-class docutils literal notranslate"><span class="pre">Awaitable</span></code>[<code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code>]]]</span>) – onResponse callback</p></li>
<li><p><strong>on_auth</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-data docutils literal notranslate"><span class="pre">Callable</span></code>[[<a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest" title="selenium_driverless.scripts.network_interceptor.InterceptedRequest"><code class="xref py py-class docutils literal notranslate"><span class="pre">InterceptedRequest</span></code></a>], <code class="xref py py-class docutils literal notranslate"><span class="pre">Awaitable</span></code>[<code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code>]]]</span>) – onAuth callback</p></li>
<li><p><strong>patterns</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Union</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">Dict</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]], <code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestPattern" title="selenium_driverless.scripts.network_interceptor.RequestPattern"><code class="xref py py-class docutils literal notranslate"><span class="pre">RequestPattern</span></code></a>], <code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code>]</span>) – the request patterns to intercept</p></li>
<li><p><strong>intercept_auth</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to intercept authentification</p></li>
<li><p><strong>bypass_service_workers</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to bypass service workers for a single Target</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.NetworkInterceptor.__aiter__">
<span class="sig-name descname"><span class="pre">__aiter__</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#NetworkInterceptor.__aiter__"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor.__aiter__" title="Link to this definition"></a></dt>
<dd><p>iterate using <code class="docutils literal notranslate"><span class="pre">async</span> <span class="pre">for</span></code> over requests</p>
<p><strong>Example</strong></p>
<div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">selenium_driverless.scripts.network_interceptor</span> <span class="kn">import</span> <span class="n">InterceptedRequest</span><span class="p">,</span> <span class="n">RequestStages</span>

<span class="c1"># ... some code</span>
<span class="k">async</span> <span class="k">for</span> <span class="n">data</span> <span class="ow">in</span> <span class="n">interceptor</span><span class="p">:</span>
    <span class="n">url</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">request</span><span class="o">.</span><span class="n">url</span>
    <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">InterceptedRequest</span><span class="p">):</span>
        <span class="n">data</span><span class="o">.</span><span class="n">stage</span> <span class="o">==</span> <span class="n">RequestStages</span><span class="o">.</span><span class="n">Request</span><span class="p">:</span>
            <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Request:&quot;</span><span class="o">+</span><span class="n">url</span><span class="p">)</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Response:&quot;</span><span class="o">+</span><span class="n">url</span><span class="p">)</span>
    <span class="k">else</span><span class="p">:</span>
        <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Authentification:&quot;</span><span class="o">+</span><span class="n">url</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">AsyncIterator</span></code>[<code class="xref py py-data docutils literal notranslate"><span class="pre">Union</span></code>[<a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest" title="selenium_driverless.scripts.network_interceptor.InterceptedRequest"><code class="xref py py-class docutils literal notranslate"><span class="pre">InterceptedRequest</span></code></a>, <a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth" title="selenium_driverless.scripts.network_interceptor.InterceptedAuth"><code class="xref py py-class docutils literal notranslate"><span class="pre">InterceptedAuth</span></code></a>]]</span></p>
</dd>
</dl>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>iterations should virtually take zero time, you might use <code class="docutils literal notranslate"><span class="pre">asyncio.ensure_future</span></code> where possible</p>
</div>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.NetworkInterceptor.patterns">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">patterns</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor.patterns" title="Link to this definition"></a></dt>
<dd><p>patters to intercept</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.NetworkInterceptor.target">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">target</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><span class="pre">Target</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.base_target.BaseTarget" title="selenium_driverless.types.base_target.BaseTarget"><span class="pre">BaseTarget</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.NetworkInterceptor.target" title="Link to this definition"></a></dt>
<dd><p>the Target, on which requests get intercepted</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">InterceptedRequest</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">params</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">target</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedRequest"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest" title="Link to this definition"></a></dt>
<dd><dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.target">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">target</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><span class="pre">Target</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.base_target.BaseTarget" title="selenium_driverless.types.base_target.BaseTarget"><span class="pre">BaseTarget</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.target" title="Link to this definition"></a></dt>
<dd><p>the target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.stage">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">stage</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Literal</span><span class="p"><span class="pre">[</span></span><span class="m"><span class="pre">0</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="m"><span class="pre">1</span></span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.stage" title="Link to this definition"></a></dt>
<dd><p>one of <a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestStages.Request" title="selenium_driverless.scripts.network_interceptor.RequestStages.Request"><code class="xref py py-func docutils literal notranslate"><span class="pre">RequestStages.Request</span></code></a>, <a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.RequestStages.Response" title="selenium_driverless.scripts.network_interceptor.RequestStages.Response"><code class="xref py py-func docutils literal notranslate"><span class="pre">RequestStages.Response</span></code></a>
0 =&gt; Request
1 =&gt; Response</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.is_redirect">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">is_redirect</span></span><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.is_redirect" title="Link to this definition"></a></dt>
<dd><p>if the response is a redirect (response_status_code in [301, 302, 303, 307, 308])</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.params">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">params</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">dict</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.params" title="Link to this definition"></a></dt>
<dd><p>the parameters from <a class="reference external" href="https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#event-requestPaused">Fetch.requestPaused</a> as a dict</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.frame_id">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">frame_id</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.frame_id" title="Link to this definition"></a></dt>
<dd><p>the <code class="docutils literal notranslate"><span class="pre">Page.FrameId</span></code> of the frame that initiated the request</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.request">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">request</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request" title="selenium_driverless.scripts.network_interceptor.Request"><span class="pre">Request</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.request" title="Link to this definition"></a></dt>
<dd><p>the corresponding request</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.id">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">id</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.id" title="Link to this definition"></a></dt>
<dd><p><code class="docutils literal notranslate"><span class="pre">Fetch.RequestId</span></code></p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.resource_type">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">resource_type</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.resource_type" title="Link to this definition"></a></dt>
<dd><p><code class="docutils literal notranslate"><span class="pre">Network.resourceType</span></code></p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.network_id">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">network_id</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.network_id" title="Link to this definition"></a></dt>
<dd><p>the <code class="docutils literal notranslate"><span class="pre">Network.RequestId</span></code> if a corresponding <code class="docutils literal notranslate"><span class="pre">Network.requestWillBeSent</span></code> event had been fired</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_error_reason">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">response_error_reason</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_error_reason" title="Link to this definition"></a></dt>
<dd><p>response error-reason at response stage</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_headers">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">response_headers</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_headers" title="Link to this definition"></a></dt>
<dd><p>the headers at response stage</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_status_code">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">response_status_code</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_status_code" title="Link to this definition"></a></dt>
<dd><p>the status code at response stage</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_status_text">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">response_status_text</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.response_status_text" title="Link to this definition"></a></dt>
<dd><p>the status text at response stage</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.redirected_id">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">redirected_id</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.redirected_id" title="Link to this definition"></a></dt>
<dd><p><code class="docutils literal notranslate"><span class="pre">Fetch.requestId</span></code> reference id to the request that caused the redirect</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.body">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">body</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">bytes</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.body" title="Link to this definition"></a></dt>
<dd><p><strong>async</strong>
get the response body for a request</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>this uses network and might take some time</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.bypass_browser">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">bypass_browser</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">auth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">allow_redirects</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">compress</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proxy</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proxy_auth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedRequest.bypass_browser"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.bypass_browser" title="Link to this definition"></a></dt>
<dd><p>bypass browser by making the request externally</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>this method does not change the TLS fingerprint accordingly and is technically detectable</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.continue_request">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">continue_request</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">headers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">method</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">post_data</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">url</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">intercept_response</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedRequest.continue_request"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.continue_request" title="Link to this definition"></a></dt>
<dd><p>continue the request.
You might use <a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.fulfill" title="selenium_driverless.scripts.network_interceptor.InterceptedRequest.fulfill"><code class="xref py py-func docutils literal notranslate"><span class="pre">InterceptedRequest.fulfill</span></code></a>
to provide a response body</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>headers</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">Dict</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]]]</span>) – array of {“name”:name, “value”:value},  mind header order</p></li>
<li><p><strong>method</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – the method of the request</p></li>
<li><p><strong>post_data</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Union</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code>, <code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code>]</span>) – the binary post data to provide</p></li>
<li><p><strong>url</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – the url to continue the request with, change not observable by the page</p></li>
<li><p><strong>intercept_response</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code>]</span>) – overrides response interception behavior for this request</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.continue_response">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">continue_response</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">response_headers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">binary_response_headers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">response_code</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">response_phrase</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedRequest.continue_response"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.continue_response" title="Link to this definition"></a></dt>
<dd><p>continue the response.
You might use <a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.fulfill" title="selenium_driverless.scripts.network_interceptor.InterceptedRequest.fulfill"><code class="xref py py-func docutils literal notranslate"><span class="pre">By</span></code></a>
to provide a response body</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>response_code</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>]</span>) – response code</p></li>
<li><p><strong>binary_response_headers</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code>]</span>) – headers as a -separated series of name: value pairs, treated as base64 encode if a string is passed,</p></li>
<li><p><strong>response_headers</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">Dict</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]]]</span>) – array of {“name”:name, “value”:value},  mind header order</p></li>
<li><p><strong>response_phrase</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – response phrase (<code class="docutils literal notranslate"><span class="pre">&quot;OK&quot;</span></code> for <code class="docutils literal notranslate"><span class="pre">response_code=200</span></code>)</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.resume">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">resume</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedRequest.resume"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.resume" title="Link to this definition"></a></dt>
<dd><p>continue the request or response
doesn’t raise id the request is canceled or already done</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.fail_request">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">fail_request</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">error_reason</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedRequest.fail_request"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.fail_request" title="Link to this definition"></a></dt>
<dd><p>fail the request or response</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>error_reason</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'Failed'</span></code>, <code class="docutils literal notranslate"><span class="pre">'Aborted'</span></code>, <code class="docutils literal notranslate"><span class="pre">'TimedOut'</span></code>, <code class="docutils literal notranslate"><span class="pre">'AccessDenied'</span></code>, <code class="docutils literal notranslate"><span class="pre">'ConnectionClosed'</span></code>, <code class="docutils literal notranslate"><span class="pre">'ConnectionReset'</span></code>, <code class="docutils literal notranslate"><span class="pre">'ConnectionRefused'</span></code>, <code class="docutils literal notranslate"><span class="pre">'ConnectionAborted'</span></code>, <code class="docutils literal notranslate"><span class="pre">'ConnectionFailed'</span></code>, <code class="docutils literal notranslate"><span class="pre">'NameNotResolved'</span></code>, <code class="docutils literal notranslate"><span class="pre">'InternetDisconnected'</span></code>, <code class="docutils literal notranslate"><span class="pre">'AddressUnreachable'</span></code>, <code class="docutils literal notranslate"><span class="pre">'BlockedByClient'</span></code>, <code class="docutils literal notranslate"><span class="pre">'BlockedByResponse'</span></code>]</span>) – the specified reason for the request failing</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedRequest.fulfill">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">fulfill</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">response_code</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">binary_response_headers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">body</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">response_headers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">response_phrase</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedRequest.fulfill"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest.fulfill" title="Link to this definition"></a></dt>
<dd><p>fulfill the request or response</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>response_code</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></span>) – response code</p></li>
<li><p><strong>body</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Union</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code>, <code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code>]</span>) – the response body</p></li>
<li><p><strong>binary_response_headers</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – headers as a -separated series of name: value pairs, treated as base64 encode if a string is passed,</p></li>
<li><p><strong>response_headers</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">Dict</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]]]</span>) – array of {“name”:name, “value”:value},  mind header order</p></li>
<li><p><strong>response_phrase</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – response phrase (<code class="docutils literal notranslate"><span class="pre">&quot;OK&quot;</span></code> for <code class="docutils literal notranslate"><span class="pre">response_code=200</span></code>)</p></li>
</ul>
</dd>
</dl>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">InterceptedAuth</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">params</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">target</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedAuth"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth" title="Link to this definition"></a></dt>
<dd><dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.request">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">request</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.Request" title="selenium_driverless.scripts.network_interceptor.Request"><span class="pre">Request</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.request" title="Link to this definition"></a></dt>
<dd><p>the Request, for which auth is required</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.id">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">id</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.id" title="Link to this definition"></a></dt>
<dd><p>the <code class="docutils literal notranslate"><span class="pre">Fetch.RequestId</span></code></p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.frame_id">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">frame_id</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.frame_id" title="Link to this definition"></a></dt>
<dd><p>the <code class="docutils literal notranslate"><span class="pre">Page.FrameId</span></code> from which the request has been initiated</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.params">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">params</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">dict</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.params" title="Link to this definition"></a></dt>
<dd><p>the parameters from <a class="reference external" href="https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#event-authRequired">Fetch.authRequired</a> as a dict</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.target">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">target</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><span class="pre">Target</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.base_target.BaseTarget" title="selenium_driverless.types.base_target.BaseTarget"><span class="pre">BaseTarget</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.target" title="Link to this definition"></a></dt>
<dd><p>the target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.resource_type">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">resource_type</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.resource_type" title="Link to this definition"></a></dt>
<dd><p>the <cite>Network.ResourceType</cite></p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.auth_challenge">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">auth_challenge</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge" title="selenium_driverless.scripts.network_interceptor.AuthChallenge"><span class="pre">AuthChallenge</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.auth_challenge" title="Link to this definition"></a></dt>
<dd><p>the AuthChallenge</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.continue_auth">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">continue_auth</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">response</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'Default'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">username</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">password</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedAuth.continue_auth"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.continue_auth" title="Link to this definition"></a></dt>
<dd><p>continue the auth</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>response</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'Default'</span></code>, <code class="docutils literal notranslate"><span class="pre">'CancelAuth'</span></code>, <code class="docutils literal notranslate"><span class="pre">'ProvideCredentials'</span></code>]</span>) – “Default” by default, automatically set to “ProvideCredentials”, if username or password specified</p></li>
<li><p><strong>username</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – username for the auth</p></li>
<li><p><strong>password</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – password for the auth</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.resume">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">resume</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedAuth.resume"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.resume" title="Link to this definition"></a></dt>
<dd><p>continue the auth
doesn’t raise id the request is canceled or already done</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.InterceptedAuth.cancel">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">cancel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#InterceptedAuth.cancel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth.cancel" title="Link to this definition"></a></dt>
<dd><p>cancel the auth</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthChallenge">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">AuthChallenge</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">params</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">target</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#AuthChallenge"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge" title="Link to this definition"></a></dt>
<dd><dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthChallenge.target">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">target</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><span class="pre">Target</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.base_target.BaseTarget" title="selenium_driverless.types.base_target.BaseTarget"><span class="pre">BaseTarget</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.target" title="Link to this definition"></a></dt>
<dd><p>the target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthChallenge.params">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">params</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">dict</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.params" title="Link to this definition"></a></dt>
<dd><p>the parameters from <a class="reference external" href="https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#type-AuthChallenge">Fetch.AuthChallenge</a> as a dict</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthChallenge.source">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">source</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Literal</span><span class="p"><span class="pre">[</span></span><span class="s"><span class="pre">'Server'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'Proxy'</span></span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.source" title="Link to this definition"></a></dt>
<dd><p>Source of the authentication challenge</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthChallenge.origin">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">origin</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.origin" title="Link to this definition"></a></dt>
<dd><p>Origin of the challenger.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthChallenge.scheme">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">scheme</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.scheme" title="Link to this definition"></a></dt>
<dd><p>The authentication scheme used, such as basic or digest</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthChallenge.realm">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">realm</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthChallenge.realm" title="Link to this definition"></a></dt>
<dd><p>corresponding value for <code class="docutils literal notranslate"><span class="pre">Please</span> <span class="pre">enter</span> <span class="pre">your</span> <span class="pre">username</span> <span class="pre">and</span> <span class="pre">password</span> <span class="pre">for</span> <span class="pre">&lt;realm</span> <span class="pre">name&gt;:</span></code></p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">Request</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">params</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">target</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#Request"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request" title="Link to this definition"></a></dt>
<dd><dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.target">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">target</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><span class="pre">Target</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="../Target/#selenium_driverless.types.base_target.BaseTarget" title="selenium_driverless.types.base_target.BaseTarget"><span class="pre">BaseTarget</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.target" title="Link to this definition"></a></dt>
<dd><p>the target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.params">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">params</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">dict</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.params" title="Link to this definition"></a></dt>
<dd><p>the parameters from <a class="reference external" href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Request">Network.Request</a> as a dict</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.url">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">url</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.url" title="Link to this definition"></a></dt>
<dd><p>Request URL (without fragment).</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.url_fragment">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">url_fragment</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.url_fragment" title="Link to this definition"></a></dt>
<dd><p>Fragment of the requested URL starting with hash, if present.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.method">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">method</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.method" title="Link to this definition"></a></dt>
<dd><p>HTTP request method.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.headers">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">headers</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.headers" title="Link to this definition"></a></dt>
<dd><p>Request / response headers as keys / values of JSON object.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.post_data">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">post_data</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.post_data" title="Link to this definition"></a></dt>
<dd><p>HTTP POST request data</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.has_post_data">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">has_post_data</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">bool</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.has_post_data" title="Link to this definition"></a></dt>
<dd><p>True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.post_data_entries">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">post_data_entries</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.post_data_entries" title="Link to this definition"></a></dt>
<dd><p>an array of <a class="reference external" href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-PostDataEntry">Network.PostDataEntry</a></p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.mixed_content_type">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">mixed_content_type</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Literal</span><span class="p"><span class="pre">[</span></span><span class="s"><span class="pre">'blockable'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'optionally-blockable'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'none'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">None</span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.mixed_content_type" title="Link to this definition"></a></dt>
<dd><p>The mixed content type of the request.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.initial_priority">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">initial_priority</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Literal</span><span class="p"><span class="pre">[</span></span><span class="s"><span class="pre">'VeryLow'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'Low'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'Medium'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'High'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'VeryHigh'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">None</span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.initial_priority" title="Link to this definition"></a></dt>
<dd><p>Priority of the resource request at the time request is sent.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.referrer_policy">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">referrer_policy</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Literal</span><span class="p"><span class="pre">[</span></span><span class="s"><span class="pre">'unsafe-url'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'no-referrer-when-downgrade'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'no-referrer'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'origin'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'origin-when-cross-origin'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'same-origin'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'strict-origin'</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="s"><span class="pre">'strict-origin-when-cross-origin'</span></span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.referrer_policy" title="Link to this definition"></a></dt>
<dd><p>The referrer policy of the request, as defined in <a class="reference external" href="https://www.w3.org/TR/referrer-policy/">w3.org/TR/referrer-policy</a></p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.is_link_preload">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">is_link_preload</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">bool</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.is_link_preload" title="Link to this definition"></a></dt>
<dd><p>Whether is loaded via link preload.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.trust_token_params">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">trust_token_params</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">dict</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.trust_token_params" title="Link to this definition"></a></dt>
<dd><p>see <a class="reference external" href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-TrustTokenParams">Network.TrustTokenParams</a> for reference</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.Request.is_same_site">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">is_same_site</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">bool</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.Request.is_same_site" title="Link to this definition"></a></dt>
<dd><p>True if this resource request is considered to be the ‘same site’ as the request corresponding to the main frame.</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestStages">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">RequestStages</span></span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#RequestStages"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestStages" title="Link to this definition"></a></dt>
<dd><dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestStages.Request">
<span class="sig-name descname"><span class="pre">Request</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestStages.Request" title="Link to this definition"></a></dt>
<dd><p>stage at request</p>
</dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestStages.Response">
<span class="sig-name descname"><span class="pre">Response</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">1</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestStages.Response" title="Link to this definition"></a></dt>
<dd><p>stage at response</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestPattern">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">RequestPattern</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">value</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#RequestPattern"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestPattern" title="Link to this definition"></a></dt>
<dd><p>An enumeration.</p>
<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestPattern.AnyRequest">
<span class="sig-name descname"><span class="pre">AnyRequest</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">{'requestStage':</span> <span class="pre">'Request',</span> <span class="pre">'urlPattern':</span> <span class="pre">'*'}</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestPattern.AnyRequest" title="Link to this definition"></a></dt>
<dd><p>pattern for any request</p>
</dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestPattern.AnyResponse">
<span class="sig-name descname"><span class="pre">AnyResponse</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">{'requestStage':</span> <span class="pre">'Response',</span> <span class="pre">'urlPattern':</span> <span class="pre">'*'}</span></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestPattern.AnyResponse" title="Link to this definition"></a></dt>
<dd><p>pattern for any response</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestPattern.new">
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">new</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">url_pattern</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">resource_type</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">request_stage</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#RequestPattern.new"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestPattern.new" title="Link to this definition"></a></dt>
<dd><p>create a new request pattern</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthAlreadyHandledException">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">AuthAlreadyHandledException</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">data</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#AuthAlreadyHandledException"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthAlreadyHandledException" title="Link to this definition"></a></dt>
<dd><p>raised when an auth challenge has already been handled by an external application (for example chrome-extension)</p>
<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.AuthAlreadyHandledException.request">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">request</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth" title="selenium_driverless.scripts.network_interceptor.InterceptedAuth"><span class="pre">InterceptedAuth</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.AuthAlreadyHandledException.request" title="Link to this definition"></a></dt>
<dd><p>the corresponding auth challenge</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestDoneException">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.network_interceptor.</span></span><span class="sig-name descname"><span class="pre">RequestDoneException</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">data</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/selenium_driverless/scripts/network_interceptor/#RequestDoneException"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestDoneException" title="Link to this definition"></a></dt>
<dd><p>raised when the request or auth challenge has already been resumed</p>
<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.network_interceptor.RequestDoneException.request">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">request</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedRequest" title="selenium_driverless.scripts.network_interceptor.InterceptedRequest"><span class="pre">InterceptedRequest</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="#selenium_driverless.scripts.network_interceptor.InterceptedAuth" title="selenium_driverless.scripts.network_interceptor.InterceptedAuth"><span class="pre">InterceptedAuth</span></a></em><a class="headerlink" href="#selenium_driverless.scripts.network_interceptor.RequestDoneException.request" title="Link to this definition"></a></dt>
<dd><p>the corresponding request or auth challenge</p>
</dd></dl>

</dd></dl>

</section>
</section>


           </div>
          </div>
          <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
        <a href="../Input/" class="btn btn-neutral float-left" title="Input" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
        <a href="../Target/" class="btn btn-neutral float-right" title="Target" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2024, Aurin Aegerter (aka Steve, kaliiiiiiiiii).</p>
  </div>

  Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    provided by <a href="https://readthedocs.org">Read the Docs</a>.
   

</footer>
        </div>
      </div>
    </section>
  </div>
  <script>
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>